Skip to content

Conversation

Shr1ftyy
Copy link
Contributor

@Shr1ftyy Shr1ftyy commented Jan 15, 2025

Description

Adds a getTotalColdkeyStake and getTotalHotkeyStake to the staking precompile

Related Issue(s)

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Other (please describe):

Checklist

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have run cargo fmt and cargo clippy to ensure my code is formatted and linted correctly
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@Shr1ftyy Shr1ftyy marked this pull request as ready for review January 20, 2025 06:00
@Shr1ftyy Shr1ftyy requested a review from unconst as a code owner January 20, 2025 06:00
@Shr1ftyy Shr1ftyy changed the title Adding a getStakeColdkey method to the staking precompile Adding a getTotalColdkeyStake, and getTotalHotkeyStake method to the staking precompile Jan 21, 2025
@Shr1ftyy Shr1ftyy changed the title Adding a getTotalColdkeyStake, and getTotalHotkeyStake method to the staking precompile Adding getTotalColdkeyStakeand getTotalHotkeyStake to the staking precompile Jan 21, 2025
@gztensor gztensor added the skip-cargo-audit This PR fails cargo audit but needs to be merged anyway label Jan 21, 2025
- gets stake for coldkey on subnet and across all subnets
@sam0x17 sam0x17 requested a review from open-junius February 24, 2025 20:02
@sam0x17
Copy link
Contributor

sam0x17 commented Feb 24, 2025

let's re-review this and see if we can get it merged if it looks good @open-junius 🙏🏻

open-junius
open-junius previously approved these changes Feb 25, 2025
@open-junius
Copy link
Contributor

opentensor/subtensor-js-tests#10 used to verify the PR e2e. test passed.

@open-junius open-junius requested a review from ales-otf February 25, 2025 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip-cargo-audit This PR fails cargo audit but needs to be merged anyway
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants